package D12_19z.BU_6;

import java.util.LinkedHashMap;

public class Demo {
    public static void main(String[] args) {
        demo01();
    }
    public static void demo01()  {
        LinkedHashMap<String,String[]> map = new LinkedHashMap<>();
        map.put("loginName",new String[]{"zhangs"});
        map.put("password",new String[]{"123"});
        map.put("sex",new String[]{"男"});
        map.put("edu",new String[]{"专科"});
        map.put("hobby",new String[]{"eat","sleep","code"});
        User user = new User();
        MyBeanUtils.populate(user,map);
        System.out.println(user);
    }
}
